{extend name="common"}

{block name="content"}
	<div class="index-container"> <!--最外层 container -->

		<div class="index-top"><!--顶部图片-->
			<img src="/static/images/index_top.png">
		</div> 

		<div class="activity-category"><!--活动栏目-->
			{foreach $activity_categories as $v}
				<a href="{:url('index/Activity/lists', 'category_id='.$v->id)}" class="category-item">
				    <img src="/static/icons/{$v->icon}">
				    <div class="item-name">{$v->name}</div>
				</a>
			{/foreach}
		</div>
			
		<div class="news"><!--新闻头条-->
			<div class="index-header">
				<div class="header-title">
					看头条
				</div>
				<div class="header-more"><a href="{:url('index/Activity/lists')}">更多 >></a></div>
			</div>
			<div class="news-content">
				{foreach $top as $v}
				    <div><a class="title" href="#">{$v->title}</a></div>
				{/foreach}
				
			</div>
		</div>

		<div class="news"> <!--热门赛事-->
			<div class="index-header">
				<div class="header-title">
					热门活动
				</div>
				<div class="header-more"><a href="{:url('index/Activity/lists')}">更多 >></a> </div>
			</div>

			<div class="hot-activity"> <!--热门赛事内容 图片-->
				{foreach $hot as $v}
					<div><img src="/static/uploads/{$v->cover}" alt=""></div>
				{/foreach}
			</div>
		</div>

		{include file="menu"}

	</div> <!--/container-->
{/block}